package fr.web325.bean;

import java.util.Date;

public class Order {
    private String id;                  // ID
    private double money;               // 价格
    private String receiverAddress;     // 收货地址
    private String receiverName;        // 收货人
    private String receiverPhone;       // 收货电话
    private String username;            // 用户名
    private int paystate;               // 支付状态  1:已支付  2:未知
    private Date orderTime;             // 订单创建时间
    private int user_id;                // 用户ID

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getPaystate() {
        return paystate;
    }

    public void setPaystate(int paystate) {
        this.paystate = paystate;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getId() {
        return id;
    }

    public Order() {
    }

    public Order(String id, Date orderTime, String receiverName, String receiverAddress, String receiverPhone, double money,int paystate, int user_id) {
        this.id = id;
        this.orderTime = orderTime;
        this.paystate = paystate;
        this.user_id = user_id;
        this.receiverName = receiverName;
        this.receiverAddress = receiverAddress;
        this.receiverPhone = receiverPhone;
        this.money = money;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }


}
